from django.conf.urls import url
from . import views

urlpatterns = [

    url(r'^channels/$', views.ChannelListView.as_view()),
    url(r'^channels/(?P<channel_id>\d+)/$', views.NewsListView.as_view()),
    url(r'^news/(?P<pk>\d+)/$', views.NewsDetailView.as_view()),
#     url(r'^comments/(?P<news_id>\d+)/$', views.CommentsListView.as_view()),
#     url(r'^news/(?P<pk>\d+)/comments/$', views.CommentsView.as_view()),
#     url(r'^comments/$', views.CommentsListView.as_view()),
    url(r'^comment/$', views.CreateCommentAPIView.as_view()),

]